pragma Singleton
import QtQuick

import "../games/tutorial" as Tut

Item{
    id:root
    property alias uiState:d_uiState
    Item{
        id:d_uiState

        property string currentMenu:"开始"
    }

    function quitApp(){
        Qt.quit()
    }

    property GameContext currentGame:Tut.GameContext{

    }

    function startGame(gameComp){
        var game = gameComp.createObject(root)
        currentGame = game
    }


    property alias defaultLevels:defaultLevels
    Item{
        id:defaultLevels

        Level{
            name:"教学关卡"
            comment:"这是个教学关卡"
        }
        Level{
            name:"第一关"
            comment:"与alex的对战"
        }


    }


}
